﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DynamicSettings.aspx.cs" Inherits="DynamicSettings.Layouts.BramNuyts.DynamicSettings.DynamicSettings" DynamicMasterPageFile="~masterurl/default.master" %>

<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="/_controltemplates/InputFormControl.ascx" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<div style="text-align: right; padding: .2em;"><a href="http://bramnuyts.wordpress.com" target="_blank">http://bramnuyts.wordpress.com</a></div>
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="ms-descriptiontext">
    <wssuc:InputFormSection ID="AddPropertySection" runat="server" Title="Add Property" Description="Add a property to the propertybag of the current SPWeb.">
        <template_inputformcontrols>
                <wssuc:InputFormControl ID="AddPropertyKeyControl" runat="server" LabelText="Property Key:" LabelAssociatedControlId="txt_propertyKey">
                    <Template_Control>
                        <asp:TextBox ID="txt_propertyKey" runat="server"></asp:TextBox>
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="AddPropertyValueControl" runat="server" LabelText="Property Value:" LabelAssociatedControlId="txt_propertyValue">
                    <Template_Control>
                        <asp:TextBox ID="txt_propertyValue" runat="server"></asp:TextBox>
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="AddPropertySubmitControl" runat="server">
                    <Template_Control>
                        <asp:Button UseSubmitBehavior="true" ID="AddPropertyButton" runat="server" Text="Add Property" OnClick="AddProperty" />
                        <br /><asp:Label ID="AddPropertyStatus" runat="server" />
                    </Template_Control>
                </wssuc:InputFormControl>
        </template_inputformcontrols>
    </wssuc:InputFormSection>
    <wssuc:InputFormSection ID="RemovePropertySection" runat="server" Title="Remove Properties" Description="Remove existing dynamic properties from the current SPWeb.">
        <template_inputformcontrols>
            <wssuc:InputFormControl ID="RemovePropertyControl" runat="server">
                <Template_Control>
                    <asp:GridView ID="ExistingProperties" runat="server" Width="100%"></asp:GridView>
                    <br /><asp:Label ID="RemovePropertyStatus" runat="server" />
                </Template_Control>
            </wssuc:InputFormControl>
        </template_inputformcontrols>
    </wssuc:InputFormSection>
</table>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Dynamic Settings
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Dynamic Settings
</asp:Content>
